package com.qcby.llmtchstd.service;

import com.qcby.llmtchstd.dto.ExamPaperDto;
import org.apache.poi.xwpf.usermodel.XWPFDocument;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface OfficeService {
    // 根据ID从数据库查询试卷数据
    ExamPaperDto getExamPaperById(Long paperId);

    // 修改参数为ExamPaperDto，直接使用已查询到的试卷数据
    XWPFDocument generateExamPaper(ExamPaperDto paperDto);

    // 下载试卷方法
    void downloadExamPaper(XWPFDocument document, ExamPaperDto paperDto, HttpServletResponse response, HttpServletRequest request);
}
